package com.aeoj.client.user.controller;

import com.aeoj.client.user.service.UserService;
import com.aeoj.domain.client.user.User;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author: ZSM
 * time: 2025-04-14 23:28
 */
@RestController
@RequestMapping("/client/user")
public class UserController {
    @Resource
    private UserService userService;

    @PostMapping("login")
    public User login(@RequestBody User user) {
        userService.login(user);
    }
}
